define(
	/*api模块来定义请求数据的方法*/
function Api (){
	var getCategoriesList = function(){
		$.ajax({
			url: '/path/to/file',
			type: 'default GET (Other values: POST)',
			dataType: 'default: Intelligent Guess (Other values: xml, json, script, or html)',
			data: {param1: 'value1'},
		})
		.done(function(response) {
			console.log("success");
			return response;
		})
		.fail(function(error) {
			console.log("error");
		})
		.always(function() {
			console.log("complete");
		});
		
	};

	

	return {
		getCategoriesList: getCategoriesList,
	}
});